﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TVGuide.DataAccess.Common
{
    public class Country
    {
        #region Public Properties

        public short Id { get; set; }
        public String Name { get; set; }

        #endregion
        
        public Country() { }

        #region Explicit Cast

        public static explicit operator country(Country c)
        {
            if (c == null)
                return null;
            country country = new country();
            country.countryID = c.Id;
            country.countryName = c.Name;
            return country;
        }

        public static explicit operator Country(country c)
        {
            if (c == null)
                return null;
            Country country = new Country();
            country.Id = c.countryID;
            country.Name = c.countryName;
            return country;
        }

        #endregion

    }
}
